package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 节假日、考勤设置对象 attendance_setting
 * 
 * @author yuan
 * @date 2022-09-25
 */
public class HolidaySettings extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date selectDate;

    /** 是否为节假日(0=否,1=是) */
    @Excel(name = "是否为节假日(0=否,1=是)")
    private String isHoliday;

    /** 节假日名称 */
    @Excel(name = "节假日名称")
    private String holidayName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSelectDate(Date selectDate) 
    {
        this.selectDate = selectDate;
    }

    public Date getSelectDate() 
    {
        return selectDate;
    }
    public void setIsHoliday(String isHoliday)
    {
        this.isHoliday = isHoliday;
    }

    public String getIsHoliday() 
    {
        return isHoliday;
    }
    public void setHolidayName(String holidayName) 
    {
        this.holidayName = holidayName;
    }

    public String getHolidayName() 
    {
        return holidayName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("selectDate", getSelectDate())
            .append("isHoliday", getIsHoliday())
            .append("holidayName", getHolidayName())
            .toString();
    }
}
